﻿using Adnc.Application.Shared.Services;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WYT.Usr.Application.Contracts.Dtos.Health;

namespace WYT.Usr.Application.Contracts.Services
{
    /// <summary>
    /// 健康自检服务
    /// </summary>
    public interface IHealthAppService : IAppService
    {
        /// <summary>
        /// 开始答题
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="classify"></param>
        /// <returns></returns>
        Task<AppSrvResult<StartAnswerDto>> StartAnswer(long userId, int classify = 1);

        /// <summary>
        /// 提交答题
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<AppSrvResult<bool>> UserAnswer(UserAnswerParaDto input);

        /// <summary>
        /// 获取报告
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<AppSrvResult<HealthReportDto>> GetHealthUserExam(long id);
    }
}
